package com.kaishengit.dao;

import com.kaishengit.entity.Order;
import com.kaishengit.util.DBHelp;

public class OrderDao {
	
	private DBHelp<Order> db = new DBHelp<Order>();
	
	public void save(Order order){
		String sql = "insert into t_order(id,createtime,name,address,tel,state,userid) value(?,?,?,?,?,?,?)";
		db.executeSQL(sql, order.getId(),order.getCreatetime(),order.getName(),order.getAddress(),order.getTel(),order.getState(),order.getUserid());
	}

}
